#!/bin/bash
mkdir /backups
case $1 in 
	gzip)
		tar -zcf /backups/etc-2020.tar.gz  /etc
		;;
	bzip2)
		tar -jcf /backups/etc-2020.tar.bz2 /etc
		;;
	xz)
		tar -Jcf /backups/etc-2020.tar.xz  /etc
		;;
	*)
		echo "error"
		;;
esac
